﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Volo.Abp.Application.Dtos;

namespace ERP.ERPSystem.ProductionSystem.Dto
{
    /// <summary>
    /// 工序的数据传输对象 (DTO)，用于在各层之间传递数据。
    /// </summary>
    public class ProcedureDTO
    {
        /// <summary>
        /// 主键ID
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 工序编码
        /// </summary>
        [Required]
        [MaxLength(50)]
        public string ProcedureCode { get; set; }

        /// <summary>
        /// 工序名称
        /// </summary>
        [Required]
        [MaxLength(50)]
        public string ProcedureName { get; set; }

        /// <summary>
        /// 是否启用 (1=启用, 0=禁用)
        /// </summary>
        public int? IsNo { get; set; }

        /// <summary>
        /// 备注信息
        /// </summary>
        [Required]
        [MaxLength(50)]
        public string Context { get; set; }
    }
}
